import {
  get,
  post,
  //postForm,
  del
} from '@/utils/http'
const packageName = `http://124.70.196.178:8080/intelligent_control_webservice_eeds`

/**
 * 巡检设备
 */
// 获取全部巡检设备
export function getInspectionDevices(params) {
  return get(`${packageName}/pc/inspectionDevice/getInspectionDevices`, params)
}
// 获取巡检设备列表
export function getInspectionDeviceList(params) {
  return get(`${packageName}/pc/inspectionDevice/getInspectionDeviceList`, params)
}
// 获取巡检设备详情
export function getInspectionDevice(params) {
  return get(`${packageName}/pc/inspectionDevice/getInspectionDevice`, params)
}
// 删除巡检设备
export function delInspectionDevice(params) {
  return del(`${packageName}/pc/inspectionDevice/delInspectionDevice`, params)
}
// 保存巡检设备
export function saveInspectionDevice(params) {
  return post(`${packageName}/pc/inspectionDevice/saveInspectionDevice`, params)
}
// 读取巡检点
export function readInspectionPoint(params) {
  return post(`${packageName}/pc/inspectionDevice/readInspectionPoint`, params)
}
// 读取巡检点
export function readInspectionImage(params) {
  return post(`${packageName}/pc/inspectionDevice/readInspectionImage`, params)
}

/**
 * 巡检设备参数
 */
// 获取全部巡检设备参数
export function getInspectionDeviceParams(params) {
  return get(`${packageName}/pc/inspectionDeviceParam/getInspectionDeviceParams`, params)
}
// 获取巡检设备参数列表
export function getInspectionDeviceParamList(params) {
  return get(`${packageName}/pc/inspectionDeviceParam/getInspectionDeviceParamList`, params)
}
// 获取巡检设备参数详情
export function getInspectionDeviceParam(params) {
  return get(`${packageName}/pc/inspectionDeviceParam/getInspectionDeviceParam`, params)
}
// 删除巡检设备参数
export function delInspectionDeviceParam(params) {
  return del(`${packageName}/pc/inspectionDeviceParam/delInspectionDeviceParam`, params)
}
// 保存巡检设备参数
export function saveInspectionDeviceParam(params) {
  return post(`${packageName}/pc/inspectionDeviceParam/saveInspectionDeviceParam`, params)
}

/**
 * 巡检点
 */
// 获取全部巡检点
export function getInspectionPoints(params) {
  return get(`${packageName}/pc/inspectionPoint/getInspectionPoints`, params)
}
// 获取巡检点列表
export function getInspectionPointList(params) {
  return get(`${packageName}/pc/inspectionPoint/getInspectionPointList`, params)
}
// 获取巡检点详情
export function getInspectionPoint(params) {
  return get(`${packageName}/pc/inspectionPoint/getInspectionPoint`, params)
}
// 删除巡检点
export function delInspectionPoint(params) {
  return del(`${packageName}/pc/inspectionPoint/delInspectionPoint`, params)
}
// 保存巡检点
export function saveInspectionPoint(params) {
  return post(`${packageName}/pc/inspectionPoint/saveInspectionPoint`, params)
}
/**
 * 巡检预设点
 */
// 获取全部巡检预设点列表(巡检设备id)
export function getInspectionPresetPoints(params) {
  return get(`${packageName}/pc/inspectionPresetPoint/getInspectionPresetPoints`, params)
}
// 获取巡检预设点列表(巡检设备id)
export function getInspectionPresetPointList(params) {
  return get(`${packageName}/pc/inspectionPresetPoint/getInspectionPresetPointList`, params)
}
// 获取巡检预设点
export function getInspectionPresetPoint(params) {
  return get(`${packageName}/pc/inspectionPresetPoint/getInspectionPresetPoint`, params)
}
// 删除巡检预设点
export function delInspectionPresetPoint(params) {
  return del(`${packageName}/pc/inspectionPresetPoint/delInspectionPresetPoint`, params)
}
// 保存巡检预设点
export function saveInspectionPresetPoint(params) {
  return post(`${packageName}/pc/inspectionPresetPoint/saveInspectionPresetPoint`, params)
}
/**
 * 巡检路线
 */
// 获取全部巡检路线
export function getInspectionRoutes(params) {
  return get(`${packageName}/pc/inspectionRoute/getInspectionRoutes`, params)
}
// 获取巡检路线列表
export function getInspectionRouteList(params) {
  return get(`${packageName}/pc/inspectionRoute/getInspectionRouteList`, params)
}
// 获取巡检路线详情
export function getInspectionRoute(params) {
  return get(`${packageName}/pc/inspectionRoute/getInspectionRoute`, params)
}
// 删除巡检路线
export function delInspectionRoute(params) {
  return del(`${packageName}/pc/inspectionRoute/delInspectionRoute`, params)
}
// 保存巡检路线
export function saveInspectionRoute(params) {
  return post(`${packageName}/pc/inspectionRoute/saveInspectionRoute`, params)
}

/**
 * 巡检路线节点
 */
// 获取全部巡检路线节点
export function getInspectionRoutePoints(params) {
  return get(`${packageName}/pc/inspectionRoutePoint/getInspectionRoutePoints`, params)
}
// 获取巡检路线节点列表
export function getInspectionRoutePointList(params) {
  return get(`${packageName}/pc/inspectionRoutePoint/getInspectionRoutePointList`, params)
}
// 获取巡检路线节点详情
export function getInspectionRoutePoint(params) {
  return get(`${packageName}/pc/inspectionRoutePoint/getInspectionRoutePoint`, params)
}
// 删除巡检路线节点
export function delInspectionRoutePoint(params) {
  return del(`${packageName}/pc/inspectionRoutePoint/delInspectionRoutePoint`, params)
}
// 保存巡检路线节点
export function saveInspectionRoutePoint(params) {
  return post(`${packageName}/pc/inspectionRoutePoint/saveInspectionRoutePoint`, params)
}

/**
 * 巡检巡计划
 */
// 获取巡检巡计划列表
export function getInspectionPlanList(params) {
  return get(`${packageName}/pc/inspectionPlan/getInspectionPlanList`, params)
}
// 获取巡检巡计划详情
export function getInspectionPlan(params) {
  return get(`${packageName}/pc/inspectionPlan/getInspectionPlan`, params)
}
// 删除巡检巡计划
export function delInspectionPlan(params) {
  return del(`${packageName}/pc/inspectionPlan/delInspectionPlan`, params)
}
// 保存巡检巡计划
export function saveInspectionPlan(params) {
  return post(`${packageName}/pc/inspectionPlan/saveInspectionPlan`, params)
}
// 启用禁用巡检巡计划
export function openOrCloseInspectionPlan(params) {
  return post(`${packageName}/pc/inspectionPlan/openOrCloseInspectionPlan`, params)
}

/**
 * 巡检结果
 */
// 获取巡检结果列表
export function getInspectionTaskResultList(params) {
  ;``
  return get(`${packageName}/pc/inspectionTaskResult/getInspectionTaskResultList`, params)
}
// 获取全部巡检结果列表
export function getInspectionTaskResults(params) {
  return get(`${packageName}/pc/inspectionTaskResult/getInspectionTaskResults`, params)
}

/**
 * 巡检任务
 */
// 获取巡检任务列表
export function getInspectionTaskList(params) {
  return get(`${packageName}/pc/inspectionTask/getInspectionTaskList`, params)
}
// 获取巡检任务详情
export function getInspectionTask(params) {
  return get(`${packageName}/pc/inspectionTask/getInspectionTask`, params)
}
// 删除巡检任务
export function delInspectionTask(params) {
  return del(`${packageName}/pc/inspectionTask/delInspectionTask`, params)
}
// 保存巡检任务
export function saveInspectionTask(params) {
  return post(`${packageName}/pc/inspectionTask/saveInspectionTask`, params)
}
/**
 * 网关列表
 */
// 获取设备网关列表
export function getDeviceGatewayList(params) {
  return get(`${packageName}/pc/deviceGateway/getDeviceGatewayList`, params)
}
// 获取设备网关
export function getDeviceGateway(params) {
  return get(`${packageName}/pc/deviceGateway/getDeviceGateway`, params)
}
// 删除设备网关
export function delDeviceGateway(params) {
  return del(`${packageName}/pc/deviceGateway/delDeviceGateway`, params)
}
// 保存设备网关
export function saveDeviceGateway(params) {
  return post(`${packageName}/pc/deviceGateway/saveDeviceGateway`, params)
}
/**
 * 网关列表
 */
// 获取设备报告模板列表
export function getDeviceReportTemplateList(params) {
  return get(`${packageName}/pc/deviceReportTemplate/getDeviceReportTemplateList`, params)
}
// 获取设备报告模板
export function getDeviceReportTemplate(params) {
  return get(`${packageName}/pc/deviceReportTemplate/getDeviceReportTemplate`, params)
}
// 删除设备报告模板
export function delDeviceReportTemplate(params) {
  return del(`${packageName}/pc/deviceReportTemplate/delDeviceReportTemplate`, params)
}
// 保存设备报告模板
export function saveDeviceReportTemplate(params) {
  return post(`${packageName}/pc/deviceReportTemplate/saveDeviceReportTemplate`, params)
}
